package com.koron.sinoprobe.web.subpackage.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.sinoprobe.web.subpackage.bean.SubPackage;
import com.koron.sinoprobe.web.subpackage.bean.query.SubPackageQuery;
import com.koron.sinoprobe.web.subpackage.bean.vo.SubPackageVO;
import org.koron.ebs.mybatis.SessionFactory;

public interface SubPackageService {

    SubPackage saveOrUpdateSubPackage(SessionFactory factory, SubPackage subPackage);

    SubPackageVO getSubPackageById(SessionFactory factory, String id);

    SubPackage updateSubPackage(SessionFactory factory, SubPackage subPackage);

    Integer deleteSubPackage(SessionFactory factory, String id);


    PageInfo page(SessionFactory factory, PageQuery pageQuery, SubPackageQuery subPackageQuery);
}
